package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.shuihuyezipai.ShuiHuYeZiCardBattleRecordData;
import com.yanqu.road.entity.activity.shuihuyezipai.ShuiHuYeZiCardRoomData;
import com.yanqu.road.entity.activity.shuihuyezipai.ShuiHuYeZiCardUserData;
import com.yanqu.road.entity.activity.shuihuyezipai.config.ShuiHuYeZiCardBuffConfig;
import com.yanqu.road.entity.activity.shuihuyezipai.config.ShuiHuYeZiCardCardConfig;
import com.yanqu.road.entity.activity.shuihuyezipai.config.ShuiHuYeZiCardLevelConfig;
import com.yanqu.road.entity.activity.shuihuyezipai.config.ShuiHuYeZiCardRoomConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author cwq
 * @Data 2021/12/6 18:27
 */
public class ShuiHuYeZiCardBusiness {

    // ShuiHuYeZiCardUserData
    public static ShuiHuYeZiCardUserData getShuiHuYeZiCardUserData(long userId,int activityId){
        return DaoHelper.getShuiHuYeZiCardUserDataDaoImpl().getShuiHuYeZiCardUserData(activityId,userId);
    }

    public static boolean updateShuiHuYeZiCardUserData(ShuiHuYeZiCardUserData shuiHuYeZiCardUserData){
        return DaoHelper.getShuiHuYeZiCardUserDataDaoImpl().update(shuiHuYeZiCardUserData);
    }

    public static boolean addShuiHuYeZiCardUserData(ShuiHuYeZiCardUserData shuiHuYeZiCardUserData){
        return DaoHelper.getShuiHuYeZiCardUserDataDaoImpl().add(shuiHuYeZiCardUserData);
    }

    // ShuiHuYeZiCardRoomData
    public static ShuiHuYeZiCardRoomData getShuiHuYeZiCardRoomData(long userId, int activityId){
        return DaoHelper.getShuiHuYeZiCardRoomDataDaoImpl().getShuiHuYeZiCardRoomData(activityId,userId);
    }

    public static boolean updateShuiHuYeZiCardRoomData(ShuiHuYeZiCardRoomData shuiHuYeZiCardRoomData){
        return DaoHelper.getShuiHuYeZiCardRoomDataDaoImpl().update(shuiHuYeZiCardRoomData);
    }

    public static boolean addShuiHuYeZiCardRoomData(ShuiHuYeZiCardRoomData shuiHuYeZiCardRoomData){
        return DaoHelper.getShuiHuYeZiCardRoomDataDaoImpl().add(shuiHuYeZiCardRoomData);
    }

    // ShuiHuYeZiCardBattleRecordData
    public static List<ShuiHuYeZiCardBattleRecordData> getShuiHuYeZiCardBattleRecordDataList(long userId, int activityId){
        return DaoHelper.getShuiHuYeZiCardBattleRecordDataDaoImpl().getShuiHuYeZiCardBattleRecordDataList(activityId, userId);
    }

    public static boolean updateShuiHuYeZiCardBattleRecordData(ShuiHuYeZiCardBattleRecordData recordData){
        return DaoHelper.getShuiHuYeZiCardBattleRecordDataDaoImpl().update(recordData);
    }

    public static boolean addShuiHuYeZiCardBattleRecordData(ShuiHuYeZiCardBattleRecordData recordData){
        return DaoHelper.getShuiHuYeZiCardBattleRecordDataDaoImpl().add(recordData);
    }

    // config
    public static Map<Integer, ShuiHuYeZiCardCardConfig> getShuiHuYeZiCardCardConfigMap(int activityId){
        return DaoHelper.getShuiHuYeZiCardConfigDaoImpl().getShuiHuYeZiCardCardConfigMap(activityId);
    }

    public static Map<Integer, ShuiHuYeZiCardBuffConfig> getShuiHuYeZiCardBuffConfigMap(int activityId){
        return DaoHelper.getShuiHuYeZiCardConfigDaoImpl().getShuiHuYeZiCardBuffConfigMap(activityId);
    }

    public static Map<Integer, ShuiHuYeZiCardLevelConfig> getShuiHuYeZiCardLevelConfigMap(int activityId){
        return DaoHelper.getShuiHuYeZiCardConfigDaoImpl().getShuiHuYeZiCardLevelConfigMap(activityId);
    }

    public static Map<Integer, ShuiHuYeZiCardRoomConfig> getShuiHuYeZiCardRoomConfigMap(int activityId){
        return DaoHelper.getShuiHuYeZiCardConfigDaoImpl().getShuiHuYeZiCardRoomConfigMap(activityId);
    }

}
